package com.swfcamp.shopper
{
	import flash.events.Event;

	public class NavigationEvent extends Event
	{
		private var _url:String;
		
		public static const NAVIGATION:String = "com.swfcamp.shopper.NavigationEvent:NAVIGATION";
		
		public function NavigationEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, u:String = null)
		{
			super(type, bubbles, cancelable);
			_url = u;
		}
		
		public function get url():String{
			return this._url;
		}

		override public function clone():Event{
			return new NavigationEvent(type,bubbles,cancelable,url);
		}
		
		override public function toString():String{
			return formatToString("NavigationEvent", "type", "bubbles", "cancelable", "url");
		}		
		
		
	}
}